{% extends  'admin/base/base.html' %}

{% block title %}
  个人信息页
{% endblock %}

{% block content_header %}
  个人信息
{% endblock %}

{% block content_option_desc %}
  Never Stop Learning
{% endblock %}


{% block main_content %}
  <div class="row">
    <div class="col-md-12 col-xs-12 col-sm-12">
      <div class="box box-primary">
      <div class="form-item">
        账号:</br><p>{{ users }}</p>
        </div>
      {% if not user.first_name or user.is_superuser %}
        <div class="form-item">
          姓名:<input type="text" name="name" id="name" class="form-control" autocomplete="off" value="{{ username }}" placeholder="名字只能填写一次，请慎重填写，谢谢！">
        </div>
      {% endif %}
        <div class="form-item">
        所属机房:
         <label for="idcn"></label>
         <select class="form-control" id="idcn_id" name="idcn_id">
           <option value="">--机房选择--</option>
           {% for one_idcn in idcn %}
             {% if idcn_id and one_idcn.id == idcn_id %}
               <option value="{{ one_idcn.id }}" selected>{{ one_idcn.name }}</option>
             {% else %}
               <option value="{{ one_idcn.id }}">{{ one_idcn.name }}</option>
             {% endif %}
           {% endfor %}
         </select>
        </div>
      <div class="form-item">
          <input type="submit" value="确认修改" class="revise-btn">
      </div>
      </div>
    </div>
  </div>
{% endblock %}

{% block script %}
  <script src="{% static 'js/users/revise.js' %}"></script>
{% endblock %}